﻿'
' Will Strohl (wills@strohlsitedesign.com)
' http://www.willstrohl.com
'
'Copyright (c) 2009, Will Strohl
'All rights reserved.
'
'Redistribution and use in source and binary forms, with or without modification, are 
'permitted provided that the following conditions are met:
'
'Redistributions of source code must retain the above copyright notice, this list of 
'conditions and the following disclaimer.
'
'Redistributions in binary form must reproduce the above copyright notice, this list 
'of conditions and the following disclaimer in the documentation and/or other 
'materials provided with the distribution.
'
'Neither the name of StrohlSiteDesign.com nor the names of its contributors may be 
'used to endorse or promote products derived from this software without specific prior 
'written permission.
'
'THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
'EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
'OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 
'SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
'INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
'TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
'BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
'CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
'ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 
'DAMAGE.
'

Imports DotNetNuke.Common.Utilities.Null

Namespace WillStrohl.Modules.FeedHandler

    ''' <summary>
    ''' FeedInfo
    ''' </summary>
    ''' <remarks></remarks>
    ''' <history>
    ''' </history>
    Public Class FeedInfo
        Implements IFeedInfo

#Region " Private Members "

        Private p_FeedId As Integer = Null.NullInteger
        Private p_FeedName As String = Null.NullString
        Private p_FeedModuleId As Integer = Null.NullInteger
        Private p_FeedImportUrl As String = Null.NullString
        Private p_ModuleId As Integer = Null.NullInteger
        Private p_FeedUrl As String = Null.NullString

#End Region

#Region " Public Properties "

        ''' <summary>
        ''' FeedName - this is the name of the feed
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        ''' <history>
        ''' </history>
        Public Property FeedName() As String Implements IFeedInfo.FeedName
            Get
                Return Me.p_FeedName
            End Get
            Set(ByVal value As String)
                Me.p_FeedName = value
            End Set
        End Property

        ''' <summary>
        ''' FeedId - this id number of the feed
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        ''' <history>
        ''' </history>
        Public Property FeedId() As Integer Implements IFeedInfo.FeedId
            Get
                Return Me.p_FeedId
            End Get
            Set(ByVal value As Integer)
                Me.p_FeedId = value
            End Set
        End Property

        ''' <summary>
        ''' FeedModuleId - this is the id of the module to import a feed from
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        ''' <history>
        ''' </history>
        Public Property FeedModuleId() As Integer Implements IFeedInfo.FeedModuleId
            Get
                Return Me.p_FeedModuleId
            End Get
            Set(ByVal value As Integer)
                Me.p_FeedModuleId = value
            End Set
        End Property

        ''' <summary>
        ''' FeedImportUrl - this is the URL used to import the feed, instead of the module id
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        ''' <history>
        ''' [wstrohl] - 20090324 - Created.
        ''' </history>
        Public Property FeedImportUrl() As String Implements IFeedInfo.FeedImportUrl
            Get
                Return Me.p_FeedImportUrl
            End Get
            Set(ByVal value As String)
                Me.p_FeedImportUrl = value
            End Set
        End Property

        ''' <summary>
        ''' ModuleId - this is the id number for the current module instance
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        ''' <history>
        ''' </history>
        Public Property ModuleId() As Integer Implements IFeedInfo.ModuleId
            Get
                Return Me.p_ModuleId
            End Get
            Set(ByVal value As Integer)
                Me.p_ModuleId = value
            End Set
        End Property

        ''' <summary>
        ''' FeedUrl - this is the URL for the feedhandler RSS feed
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        ''' <history>
        ''' </history>
        Public Property FeedUrl() As String Implements IFeedInfo.FeedUrl
            Get
                Return Me.p_FeedUrl
            End Get
            Set(ByVal value As String)
                Me.p_FeedUrl = value
            End Set
        End Property

#End Region

    End Class

End Namespace